using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter17
{
	/// <summary>
	/// Example04: Sound Levels
	/// Two identical machines are positioned the same distance
	/// from a worker. The intensity of sound delivered by each
	/// machine at the location of the worker is 2.0 \times 10^{-7} W/m^2. 
	/// Find the sound level heard by the worker
	/// (A) when one machine is operating,
	/// \beta_1 = 53 dB
	/// (B) when both machines are operating.
	/// \beta_2 = 56 dB
	/// </summary>
	public class Example04
	{
		public Example04()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Sound s = new L.Sound();
		    s.Intensity = 2.0E-7;
			result += Convert.ToString(s.dB)+"\r\n";
			s.Intensity = 2.0E-7*2.0;
			result += Convert.ToString(s.dB)+"\r\n";
		}
	}
}
